package test0103.test01;

public class Position {
    int pid;
    String pname;
    Double pmoney;
    Department devDepartment;

    public Position() {
    }

    public Position(int pid, String pname, Double pmoney, Department devDepartment) {
        this.pid = pid;
        this.pname = pname;
        this.pmoney = pmoney;
        this.devDepartment = devDepartment;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Double getPmoney() {
        return pmoney;
    }
    

    public void setPmoney(Double pmoney) {
        this.pmoney = pmoney;
    }

    public Department getDevDepartment() {
        return devDepartment;
    }

    public void setDevDepartment(Department devDepartment) {
        this.devDepartment = devDepartment;
    }

    @Override
    public String toString() {
        return "Position{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", pmoney=" + pmoney +
                ", devDepartment=" + devDepartment +
                '}';
    }


    public void setDepartment(Department Department) {
    }
}
